<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php if(!empty($data)){?>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table" class="martop5 tbl-list">
        <tr>
            <th class="td-label bold text-center" width="50px">
                <p style="height:33px;line-height: 33px;" class="ver-middle">Stt</p>
            </th>
            <th class="td-label bold text-center">
                <p style="height:33px;line-height: 33px;" class="ver-middle">Domain</p>
            </th>
            <th class="td-label bold text-center">
                <p style="height:33px;line-height: 33px;" class="ver-middle">Total Click</p>
            </th>
            <th class="td-label bold text-center">
                <p style="height:33px;line-height: 33px;" class="ver-middle">Total View</p>
            </th>
           
            <th class="td-label bold text-center">
                <p style="height:33px;line-height: 33px;" class="ver-middle">CPC Price</p>
            </th>
            <th class="td-label bold text-center">
                <p style="height:33px;line-height: 33px;" class="ver-middle">Percent Shared</p>
            </th>
            <th class="td-label bold text-center">
                <p style="height:33px;line-height: 33px;" class="ver-middle">Money Shared</p>
            </th>
        </tr>
        <?php  foreach($data as $i=>$d){?>
        <tr>
            <td class="ver-middle">
                <p class="pad5 text-center"><?php echo($i+1);?></p>
            </td>
            <td class="ver-middle">
                <p class="pad5 text-center"><?php echo $d['domain'];?></p>
            </td>
            <td class="ver-middle">
                <p class="pad5 text-center price"><?php echo number_format($d['totalclick']);?></p>
            </td>
            <td class="ver-middle">
                <p class="pad5 text-center price"><?php echo number_format($d['totalview']);?></p>
            </td>
            
            <td class="ver-middle">
                <p class="pad5 text-center price"><?php echo number_format($d['CPCPrice']);?></p>
            </td>
            <td class="ver-middle">
                <p class="pad5 text-center price"><?php echo $d['PercentShared'];?></p>
            </td>
            <td class="ver-middle">
                <p class="pad5 text-center price"><?php echo number_format($d['MoneyShared']);?></p>
            </td>
        </tr>
        <?php }?>
    </table>
<?php }?>